const express = require('express')
const router = express.Router()
const adminHanlder = require('../router_hanlder/admin')

const expressJoi = require('@escook/express-joi')
const adminSchema = require('../schema/admin')

//用户列表
router.get('/userlist',expressJoi(adminSchema.getUserList),adminHanlder.getUserList)

//启用&&禁用用户
router.post('/user_isdelete',expressJoi(adminSchema.userIsdelete),adminHanlder.userIsdelete)

//管理员审核利列表
router.get('/audit',expressJoi(adminSchema.audit),adminHanlder.audit)

//报销审核
router.post('/audit_operate',expressJoi(adminSchema.auditOperate),adminHanlder.auditOperate)

module.exports = router
